package com.cg.mapper;

import com.cg.pojo.entity.UserEntity;
import com.cg.pojo.vo.UserRegisterVo;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;


public interface UserMapper {
    //查询所有用户
    public List<UserRegisterVo> selectAll();

    //根据用户名查询用户
    public UserEntity selectByUsername(String username);

    //添加用户
    public int add(UserRegisterVo user);


    void update(UserRegisterVo user);
}
